﻿@inherits Vowei.Web.G18nWebViewPage<IEnumerable<Vowei.Data.Converters.Excel.ResourceAssignmentDetail>>
@using System.Web.Mvc.Html 

@{
    ViewBag.Title = T("确认导入");
}

<h2>@T("确认从Excel文件里导入的员工")</h2>

<p>
@string.Format(T("总共导入 {0} 位员工!"), Model.Count())
</p>
<form method="post" action="/Account/ConfirmImport">
<table>
    <tr>
        <th></th>
        <th>
            @T(m => m.First().Employee.DisplayName)
        </th>
        <th>
            @T(m => m.First().Employee.Email)
        </th>
        <th>
            @T(m => m.First().Employee.Title)
        </th>
        <th>
            @T(m => m.First().Employee.Department)
        </th>
        <th>
            @T(m => m.First().Employee.Level)
        </th>
        <th>
            @T(m => m.First().Employee.Telephone)
        </th>
        <th>
            @T(m => m.First().Employee.OnboardDate)
        </th>
        <th>
            @T(m => m.First().Employee.PotentialQuitDate)
        </th>
        <th>
            @T(m => m.First().Employee.IsConfirmed)
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.ActionLink(T("编辑"), "Edit", new { id = item.Employee.Email }) |
            @Html.ActionLink(T("删除"), "Delete", new { id = item.Employee.Email })
        </td>
        <td>
            @Html.ActionLink(item.Employee.DisplayName, "Details", new { id = item.Employee.Email })            
        </td>
        <td>
            @item.Employee.Email
        </td>
        <td>
            @item.Employee.Title
        </td>
        <td>
            @item.Employee.Department
        </td>
        <td>
            @item.Employee.Level
        </td>
        <td>
            @item.Employee.Telephone
        </td>
        <td>
            @T(item.Employee.OnboardDate)
        </td>
        <td>
            @T(item.Employee.PotentialQuitDate)
        </td>
        <td>
            @item.Employee.IsConfirmed
        </td>
    </tr>
}
</table>
<input type="submit" value=@T("确认") />
</form>


